.class public Lcom/xingbook/park/c/a/o;
.super Landroid/widget/LinearLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/widget/ProgressBar;

.field private c:Lcom/xingbook/park/c/a/p;


# direct methods
.method public constructor <init>(Landroid/content/Context;FLcom/xingbook/park/c/a/p;)V
    .locals 5

    const/4 v4, 0x0

    const/4 v3, -0x2

    const/high16 v1, 0x41d0

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object p3, p0, Lcom/xingbook/park/c/a/o;->c:Lcom/xingbook/park/c/a/p;

    const/16 v0, 0x11

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/o;->setGravity(I)V

    invoke-virtual {p0, v4}, Lcom/xingbook/park/c/a/o;->setOrientation(I)V

    mul-float v0, v1, p2

    float-to-int v0, v0

    mul-float/2addr v1, p2

    float-to-int v1, v1

    invoke-virtual {p0, v0, v1, v0, v1}, Lcom/xingbook/park/c/a/o;->setPadding(IIII)V

    new-instance v0, Landroid/widget/ProgressBar;

    invoke-direct {v0, p1}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/c/a/o;->b:Landroid/widget/ProgressBar;

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->b:Landroid/widget/ProgressBar;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f02023d

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setIndeterminateDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->b:Landroid/widget/ProgressBar;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    const/high16 v0, 0x4234

    mul-float/2addr v0, p2

    float-to-int v0, v0

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v0, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->b:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->b:Landroid/widget/ProgressBar;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/o;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    const v1, -0x555556

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    const/high16 v1, 0x41f0

    mul-float/2addr v1, p2

    invoke-virtual {v0, v4, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    const-string v1, "\u2193\u66f4\u591a\u7cbe\u5f69\u2193"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/o;->addView(Landroid/view/View;)V

    invoke-virtual {p0, p0}, Lcom/xingbook/park/c/a/o;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->b:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    const-string v1, "\u661f\u5b9d\u6b63\u5728\u4e3a\u60a8\u52a0\u8f7d\u00b7\u00b7\u00b7"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {p0, v2}, Lcom/xingbook/park/c/a/o;->setVisibility(I)V

    return-void
.end method

.method public a(ZLjava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->b:Landroid/widget/ProgressBar;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    if-eqz p1, :cond_1

    iget-object v1, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    if-nez p2, :cond_0

    const-string v0, "\u2193\u66f4\u591a\u7cbe\u5f69\u2193"

    :goto_0
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    if-eqz p2, :cond_3

    const-string v0, ""

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/o;->setVisibility(I)V

    :goto_2
    return-void

    :cond_0
    move-object v0, p2

    goto :goto_0

    :cond_1
    iget-object v1, p0, Lcom/xingbook/park/c/a/o;->a:Landroid/widget/TextView;

    if-nez p2, :cond_2

    const-string v0, "\\(^o^)/\u54c8\u4f5b\u591a\u5143\u667a\u80fd\u6559\u80b2\u6545\u4e8b\uff0c\u8f7b\u677e\u6559\u51fa\u597d\u5b69\u5b50\uff01"

    :goto_3
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1

    :cond_2
    move-object v0, p2

    goto :goto_3

    :cond_3
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/c/a/o;->setVisibility(I)V

    goto :goto_2
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->c:Lcom/xingbook/park/c/a/p;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/c/a/o;->c:Lcom/xingbook/park/c/a/p;

    invoke-interface {v0}, Lcom/xingbook/park/c/a/p;->a()V

    :cond_0
    return-void
.end method
